package com.example.graduation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Evaluate对象", description = "")
public class Evaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评价者id")
    private Integer userId;

    @ApiModelProperty(value = "商品id")
    @TableField("goods_Id")
    private Integer goodsId;

    @ApiModelProperty(value = "商店id")
    private Integer shopId;

    @ApiModelProperty(value = "0好 1良 2中 3一般 4差")
    private Integer type;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "评论中附带的图片")
    private String photo;

    @ApiModelProperty(value = "0质量好 1配送快 2味道好 3性价比高 4很好看 ")
    private String title;

    @ApiModelProperty(value = "是否已经评论 0表示还未评论 1表示已经评论")
    private Integer status;

    @ApiModelProperty(value = "商家回复")
    private String reply;

    @ApiModelProperty(value = "点赞")
    private Integer dianzan;

    @ApiModelProperty(value = "点踩")
    private Integer diancai;

    @ApiModelProperty(value = "用户是否删除自己的列表，0表示存在，1表示删除")
    private Integer isdelete;

    @TableField(exist = false)
    private User user;
}
